package cn.wsalix.biz.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.anlaser.entity.ParentEntity;
import cn.wsalix.status.TaskEnum;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "BIZ_TASK")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Data
@EqualsAndHashCode(callSuper = false)
public class Task extends ParentEntity<Task> {

	private String title;// 标题
	private String content;// 內容
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date planBeginTime;//计划开始时间
	@Temporal(TemporalType.TIMESTAMP)
	private Date beginTime;//开始时间
	@Temporal(TemporalType.TIMESTAMP)
	private Date endTime;// 结束时间
	private TaskEnum status;// 內容
	private String remarks;
}